<?class MSummary{	private $_db;	public function __construct()	{		$this->_db = Db::getInstance();	}		public function selectInformation($gatherId)	{		$sql = "select `theme`,`content`,`place`,`finalDate`,`finalAttendNum` from `gather` where `gatherId`=$gatherId";		$baseInfor = $this->_db->fetch_all($sql);		$baseInfor = $baseInfor[0];		$sql = "select `attendName` from `gather_user` as x,`gather_attend` as y where `x`.`gatherId`=`y`.`gatherId`=1			and `x`.`attendTel`=`y`.`attendTel` and `freeDate` = '$baseInfor[finalDate]'";		$attendNameArray = $this->_db->fetch_all($sql);		$attendName = array();		foreach($attendNameArray as $key=>$value)		{			array_push($attendName,$value['attendName']);		}		$baseInfor['attendName'] = $attendName;		return $baseInfor;	}}	